package com.itheima.service;

import com.itheima.domain.Customer;

import java.util.List;


/**
 * ClassName:CustomerService
 * Package:com.itheima.service
 * Description:
 * Date:2020/3/1623:46
 * User: snow
 */
public interface CustomerService {

	/**
	 * 查找所有用户
	 */
	public List<Customer> findAll() throws Exception;
	public List<Customer> findAll(int page,int size) throws Exception;
	/**
	 * 模糊查询
	 */
	public List<Customer> findSome(String customerName,String customerLevel,
	                               String customerSource,String customerIndustry,int page,int size) throws Exception;

	public void save(Customer customer) throws Exception;

	public Customer findById(String id) throws Exception;

	/**
	 * 删除用户
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public void delete(String id) throws Exception;

	public void update(Customer customer)throws Exception;

	List<Customer> findAllCustomerAndLinkMan()throws Exception;

	Customer findCustomerById(String customerId);
}
